b0VIM 7.2 scott warcraft ~scott/work/native-upstart/sysvinit-2.87dsf/debian/initscripts/etc/init.d/umountroot exit 3 echo "Usage: $0 start|stop" >&2 do_stop stop) exit 3 echo "Error: argument '$1' not supported" >&2 restart|reload|force-reload) # No-op start) case "$1" in [ "$VERBOSE" = no ] || log_action_end_msg $ES ES=$? || mount $MOUNT_FORCE_OPT -n -o remount,ro / || mount $MOUNT_FORCE_OPT -n -o remount,ro dummydev / 2>/dev/null \ mount $MOUNT_FORCE_OPT -n -o remount,ro -t dummytype dummydev / 2>/dev/null \ # See #339023 and the comment in checkroot.sh # will act on a bind mount of / if there is one. # mount -n -o remount,ro / # This: [ "$(uname -s)" = "GNU/kFreeBSD" ] && MOUNT_FORCE_OPT=-f MOUNT_FORCE_OPT= [ -f /var/run/init.upgraded ] && telinit u || : # it won't hold open files on the root filesystem # upgraded this cycle. It'll lose all its state, but at least # Ask init to reexec itself before we go down if it has been done mkdir -p $dir || true for dir in /proc /sys /var/run /var/lock; do # mount point exists) or we can make the mountpoint. # filesystems, so either they are mounted now (in which case the # targets for system mountpoints. We've just unmounted all other # These directories must exist on the root filesystem as they are [ "$VERBOSE" = no ] || log_action_begin_msg "Mounting root filesystem read-only" do_stop () { . /lib/lsb/init-functions . /lib/init/vars.sh PATH=/sbin:/bin ### END INIT INFO # Short-Description: Mount the root filesystem read-only. # Default-Stop: 0 6 # Default-Start: # Should-Stop: halt reboot kexec # Required-Stop: # Required-Start: # Provides: umountroot ### BEGIN INIT INFO #! /bin/sh